﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace DevWeb.Biztalk.DeploymentSettings.Data.CodeFirst.Configurations
{
    class DefaultSettingParameterValueConfiguration : ExtendedEntityTypeConfiguration<DefaultSettingParameterValue>
    {
        public DefaultSettingParameterValueConfiguration()
        {
            HasKey(p => p.Id);
            Property(p => p.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            Property(p => p.LastUpdatedBy).HasMaxLength(250);
            HasOptional(p => p.Value);
            HasRequired(p => p.DefaultSettingParameter);
            HasRequired(p => p.TargetEnvironment);
            HasRequired(p => p.LastUpdatedBy);
            Ignore(p => p.ParameterName);


        }
    }
}
